<?php
/*
*   Template Name:医院环境
*/
  get_header();
  if(have_posts()):the_post();
    get_sidebar('pagenav'); //调用页面导航
?>
	<div class="listCon yyhj content">
    <?php if(get_field('hall')):?>
    <section class="section-wrapper">
      <h2>医院大厅及候诊区</h2>
      <div class="img_list">
        <?php
          foreach (get_field('hall') as $key => $value) {
            echo "<img src='".$value['img']."' />";
          }
        ?>
      </div>
    </section>
    <?php
      endif;
      if(get_field('aisle')):
    ?>
    <section class="section-wrapper">
      <h2>医生诊室及走廊</h2>
      <div class="img_list">
        <?php
          foreach (get_field('aisle') as $key => $value) {
            echo "<img src='".$value['img']."' />";
          }
        ?>
      </div>
    </section>
    <?php
      endif;
      if(get_field('vip')):
    ?>
    <section class="section-wrapper">
      <h2>VIP会员中心</h2>
      <div class="img_list">
        <?php
          foreach (get_field('vip') as $key => $value) {
            echo "<img src='".$value['img']."' />";
          }
        ?>
      </div>
    </section>
    <?php
      endif;
      if(get_field('shoushu')):
    ?>
    <section class="section-wrapper">
      <h2>手术室及治疗区</h2>
      <div class="img_list">
        <?php
          foreach (get_field('shoushu') as $key => $value) {
            echo "<img src='".$value['img']."' />";
          }
        ?>
      </div>
    </section>
    <?php
      endif;
    ?>
  </div>
<?php
  endif;
  get_footer();
?>